Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 165 #166

Merged
merged 2 commits into from
Jul 25, 2023
Merged

Fix 165 #166

merged 2 commits into from
Jul 25, 2023

Conversation

jow-
Copy link
Owner

@jow- jow- commented Jul 25, 2023

  • types: don't rely on implicit type conversion in ucv_compare()
    • Don't implicitly convert intptr_t difference to int8_t but perform explicit comparisons
    • Don't implicitly convert strcmp() int result to int8_t
  • fs: explicitly compare isatty() result
    • Reportedly, automatic conversion of the isatty() int result value to a bool does not work correctly on PPC. Explicitly compare the result value with 1 to infer the boolean result value.

jow- added 2 commits July 25, 2023 14:06
- Don't implicitly convert intptr_t difference to int8_t but perform
  explicit comparisons

- Don't implicitly convert strcmp() int result to int8_t

Fixes: #165
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Reportedly, automatic conversion of the `isatty()` int result value to
a bool does not work correctly on PPC. Explicitly compare the result
value with `1` to infer the boolean result value.

Fixes: #165
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow- jow- merged commit bb5eba4 into master Jul 25, 2023
@jow- jow- deleted the fix-165 branch July 25, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant